package cn.stylefeng.guns.sys.modular.system.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.sys.modular.system.entity.BtyPaymentOrder;
import cn.stylefeng.guns.sys.modular.system.model.params.BtyPaymentOrderParam;
import cn.stylefeng.guns.sys.modular.system.model.result.BtyPaymentOrderAndYybbResult;
import cn.stylefeng.guns.sys.modular.system.model.result.BtyPaymentOrderResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 店面日营业现金支付详情表 服务类
 * </p>
 *
 * @author wjk
 * @since 2021-12-07
 */
public interface BtyPaymentOrderService extends IService<BtyPaymentOrder> {

    /**
     * 新增
     *
     * @author wjk
     * @Date 2021-12-07
     */
    void add(BtyPaymentOrderParam param);

    /**
     * 删除
     *
     * @author wjk
     * @Date 2021-12-07
     */
    void delete(BtyPaymentOrderParam param);

    /**
     * 更新
     *
     * @author wjk
     * @Date 2021-12-07
     */
    void update(BtyPaymentOrderParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author wjk
     * @Date 2021-12-07
     */
    BtyPaymentOrderResult findBySpec(BtyPaymentOrderParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author wjk
     * @Date 2021-12-07
     */
    List<BtyPaymentOrderResult> findListBySpec(BtyPaymentOrderParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author wjk
     * @Date 2021-12-07
     */
     LayuiPageInfo findPageBySpec(BtyPaymentOrderParam param);

    /**
     * 新建订单，将手动支付的订单存入，并且直接判定支付成功，支付人记录当前登录用户，支付方式为手动添加，增加手动支付人员信息和支付时间
     *
     * @author wjk
     * @Date 2021-12-07
     * @param btyPaymentOrderAndYybbResult
     */
     BtyPaymentOrder addBtyPaymentOrderForPaidCash(BtyPaymentOrderAndYybbResult btyPaymentOrderAndYybbResult);

    List<BtyPaymentOrderAndYybbResult> cashAndPay(BtyPaymentOrderParam param);

    List<BtyPaymentOrderAndYybbResult> getYingYe(BtyPaymentOrderParam param);

    List<BtyPaymentOrderAndYybbResult> getPayAll(BtyPaymentOrderParam param);

    List<BtyPaymentOrderAndYybbResult> getCash(BtyPaymentOrderParam param);
}
